const express = require("express");

process.env.API_URL = "http://api.csff.test.trylose.cn"

const app = express()

const port = parseInt(process.env.PORT, 10) || 7002

// app.use(express.static('dist'));
// app.use(express.static('public'));
// app.use(cookieParser());
app.get("/todo-list", (req, res) => {
    res.json([{
        desc: "this is a first desc"
    }, {
        desc: "going to learn react hooks"
    }, {
        desc: "going to build my own useState"
    }])
});

app.listen(port, () => console.log(`App listening at http://localhost:${port}`))